package com.ninjas.module.error.service.impl;

import com.ninjas.module.common.page.Page;
import com.ninjas.module.error.domain.model.Error;
import com.ninjas.module.error.mapper.ErrorMapper;
import com.ninjas.module.error.service.ErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ErrorServiceImpl implements ErrorService {

    @Autowired
    private ErrorMapper errorMapper;

    @Page
    @Override
    public List<Error> errorPageList() {
        return errorMapper.errorList();
    }
}
